﻿using System;
using System.Collections.Generic;
using System.Text;

namespace RayTrace
{
    public class Ray
    {
        private Point3D origin;
        private Vector3D direction;
        public Ray() { }
        public Ray(Point3D origin, Vector3D direction)
        {
            this.origin = origin;
            this.direction = direction;
        }
        internal Point3D Origin { get => origin; set => origin = value; }
        internal Vector3D Direction
        {
            get => direction; set => direction = value;
        }
        public Vector3D PointAtPara(double t)
        {
            return origin + new Point3D(t * direction.X, t * direction.Y, t * direction.Z);
        }
    }

}